package com.thy.service;

import com.thy.mapper.UMapper;
import com.thy.pojo.U;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UService {

    @Autowired
    UMapper userMapper;

    public List<U> selectUserByWater(int water){
        return userMapper.selectUserByWater(water);
    }

    public void updateUserById(int id){
        userMapper.updateUserById(id);
    }
}
